package org.dce.screencapturer.objects;

import java.awt.Color;
import java.awt.Graphics2D;

public class FillAttributes 
	extends PaintAttributes{

	private Color color = Color.WHITE;
	private FillType fillType = FillType.COLOR;

	public FillAttributes(){
		setEnabled(true);
	}
	
	public FillAttributes(
			boolean enabled, 
			int transparency,
			FillType fillType,
			Color color){
		super(enabled, transparency);
		this.fillType = fillType;
		this.color = color;
	}
	
	public Color getColor() {
		return color;
	}
	
	public void setColor(Color color) {
		this.color = color;
	}
	
	public FillType getFillType() {
		return fillType;
	}

	public void setFillType(FillType fillType) {
		this.fillType = fillType;
	}

	@Override
	public void apply(Graphics2D g2d) {
		g2d.setColor(color);
	}
	
	public Object clone(){
		return new FillAttributes(isEnabled(),getTransparency(),fillType,color);
	}
}
